package com.fengke.payment.service.impl;

import java.util.Map;

import com.fengke.payment.service.WXPaymentService;
import com.fengke.payment.tencent.WXPay;
import com.fengke.payment.tencent.business.UnifiedOrderBusiness;

public class WXPaymentServiceImpl implements WXPaymentService {
	private UnifiedOrderBusiness.ResultListener unifiedOrderResultListener;
	@Override
	public Map<String, Object> getWXJSPayParamMap() throws Exception {
		
		WXPay.doUnifiedOrderBusiness(null, unifiedOrderResultListener);
		
		return null;
	}
	public UnifiedOrderBusiness.ResultListener getUnifiedOrderResultListener() {
		return unifiedOrderResultListener;
	}
	public void setUnifiedOrderResultListener(UnifiedOrderBusiness.ResultListener unifiedOrderResultListener) {
		this.unifiedOrderResultListener = unifiedOrderResultListener;
	}
}
